package org.ecloud.base.identifier.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

@Configuration
@ConfigurationProperties("id")
public class IdConfig {

	public static final String TYPE_UUID = "uuid";
	public static final String TYPE_SNOWFLAKE = "SnowFlake";
	
	private String type = TYPE_UUID;
	private Long workerId = 0L;
	private Long datacenterId = 0L;
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	public Long getWorkerId() {
		return workerId;
	}
	public void setWorkerId(Long workerId) {
		this.workerId = workerId;
	}
	public Long getDatacenterId() {
		return datacenterId;
	}
	public void setDatacenterId(Long datacenterId) {
		this.datacenterId = datacenterId;
	}
	
}
